<template>
    <el-main>
        <ep-breadcrumb></ep-breadcrumb>
        <el-main class="ep-body">
           <epl-top-bar :datas="{formData:form,panel:panel}" showPerson personType="PERSON_ALL_EXACT" psTagType="PERSON_INJURY_QUERY">
                <ep-button size="small" name="刷新"></ep-button>

            </epl-top-bar>
			<epl-userMessage dataType="person" idCount="10" :panel="panel">
                <epl-userMessageItem title="当前待遇" :sum="form.bac063.value" :panel="panel">
                        <epl-column label="补发总月数" :value="form.bac062.value"></epl-column>
                        <epl-column label="补发总金额" :value="'  ￥'+form.bac063.value"></epl-column>
                    </epl-userMessageItem>
            </epl-userMessage>
            <el-form :model="form" ref="form" :rules="rules">
                <ep-input colspan="8" label="人员编号" name="aac001" :property="form.aac001" placeholder=""
                            p="H" ></ep-input>
                <ep-input colspan="8" label="单位编码" name="aab001" :property="form.aab001" placeholder=""
                            p="H" ></ep-input>
                <ep-input colspan="8" label="组织ID" name="aaz001" :property="form.aaz001" placeholder=""
                            p="H" ></ep-input>
                <ep-input colspan="8" label="业务日志ID" name="aaz002" :property="form.aaz002" placeholder=""
                            p="H" ></ep-input>
                <ep-input colspan="8" label="组织名称" name="aab004" :property="form.aab004" placeholder=""
                            p="H" ></ep-input>
                <ep-input colspan="8" label="待遇开始年月" name="aic160" :property="form.aic160" placeholder=""
                            p="H" ></ep-input>
                <ep-input colspan="8" label="享受定期待遇人员id" name="aaz257" :property="form.aaz257"
                    p="H" v-if="show" ></ep-input>
            <el-collapse v-model="activeNames" @change="handleChange">
                
    <el-collapse-item title="认定鉴定信息" name="1">
                <el-card class="ep-card">
                    <ep-input colspan="8" label="单位管理码"  name="aab999" :property="form.aab999" placeholder=""
                                  p="H"  ></ep-input>
                    <el-row :gutter="10">
                        <ep-input colspan="8" label="工伤认定书编号" name="alc011" :property="form.alc011" placeholder=""
                                  p="D"  ></ep-input>
                        <ep-input colspan="8" label="统一社会信用代码"  name="bab010" :property="form.bab010" placeholder=""
								p="D"  ></ep-input>
                        <ep-input colspan="8" label="单位名称" name="aab069" :property="form.aab069" placeholder=""
                                  p="D" ></ep-input>
                    </el-row>
                    <el-row :gutter="10">
                        <ep-date colspan="8" label="工伤发生时间" name="alc020"   :property="form.alc020" placeholder=""
                                  p="D" type="date" format="yyyy-MM-dd"  ></ep-date>
							<ep-date colspan="8" label="工伤认定日期"  name="alc031"   :property="form.alc031" placeholder=""
                                  p="D" type="date" format="yyyy-MM-dd"  ></ep-date>
							<ep-select colspan="8" label="工伤认定结论" name="ala015" :property="form.ala015" placeholder=""
									p="D"  codetype="ALA015"  ></ep-select>  
                    </el-row>       
                    <el-row :gutter="10">
                        <ep-select colspan="8" label="伤害部位1" name="alc042" :property="form.alc042" placeholder=""
                                  p="D"  codetype="ALC042" ></ep-select>
                        <ep-select colspan="8" label="伤害部位2" name="alc043" :property="form.alc043" placeholder=""
                                  p="D"  codetype="ALC043" ></ep-select>
                        <ep-select colspan="8" label="伤害部位3" name="alc044" :property="form.alc044" placeholder=""
                                  p="D"  codetype="ALC044" ></ep-select></el-row>    
                    
                    <el-row :gutter="10">
                        <ep-select colspan="8" label="职业病名称1" name="ala017" :property="form.ala017" placeholder=""
                                  p="D"  codetype="ALA017"></ep-select>
                    <ep-date colspan="8" label="劳动能力鉴定日期"  name="alc034" :property="form.alc034" placeholder="" 
									p="D" type="date" format="yyyy-MM-dd"></ep-date>
                   <ep-select colspan="8" label="伤残等级" name="ala040" :property="form.ala040" placeholder=""
									p="D" codetype="ALA040"  ></ep-select>
                    </el-row>
                    <el-row :gutter="10">
                    <ep-select colspan="8" label="生活自理障碍等级" name="alc060" :property="form.alc060" placeholder=""
									p="D" codetype="ALC060"  ></ep-select>
                    <ep-date colspan="8" label="因工死亡日期"  name="alc040" :property="form.alc040" placeholder=""
									p="D" type="date" format="yyyy-MM-dd"></ep-date>      
                    <ep-select colspan="8" label="老工伤标识" name="bae476" :property="form.bae476" placeholder=""
									p="D" codetype="BAE476"></ep-select>                       
                    </el-row>
                </el-card>
            </el-collapse-item>
                 <el-collapse-item title="请输入待遇续发信息" name="2">
                    <el-card class="ep-card">
                            <el-row :gutter="10">
                                <ep-select colspan="8" label="续发原因" name="aae160" :property="form.aae160"  placeholder="请选择停发原因"
                                p="R"   codetype="AAE160"></ep-select>
                                <ep-date colspan="8" label="续发开始年月" name="aae041" :property="form.aae041" placeholder="请输入停发开始年月" 
                                p="R" type="date" format="yyyy-MM" ></ep-date>
                                <ep-input colspan="8" label="结算期" name="aae002" :property="form.aae002" 
                                p="D" ></ep-input>
                            </el-row>
                            <el-row :gutter="10">
                                <ep-input colspan="8" label="补发总月数" name="bac062" :property="form.bac062" 
                                p="D" ></ep-input>
                                <ep-input colspan="8" label="补发总金额" name="bac063" :property="form.bac063" 
                                p="D" ></ep-input>
                            </el-row>
                                <el-row><ep-textarea :rows="3" colspan="24" label="备注" name="aae013" :property="form.aae013" placeholder="请输入备注" p="E" ></ep-textarea></el-row>                        
                               
                    </el-card>
                </el-collapse-item>
            </el-collapse>
            </el-form>
            <el-card class="ep-card">
                <el-tabs  v-model="activeName2" type="card" >
                <el-tab-pane label="待遇补发明细" name="1">
                    <ep-table :data="tableData1" :titleFilter="demo1">
                        <ep-table-column sortable name="aaa036" header="待遇项目"></ep-table-column>
                        <ep-table-column sortable name="aae003" header="对应所属期"></ep-table-column>
                        <ep-table-column sortable name="aae019" header="扣发金额"></ep-table-column>
                    </ep-table></el-tab-pane>
    
                <el-tab-pane label="待遇变更记录" name="2">
                        <ep-table :data="tableData2" border style="width: 100%;" :titleFilter="demo2">
                            <ep-table-column sortable name="aaa099" header="待遇变更类型"></ep-table-column>
                            <ep-table-column sortable name="aae041" header="变更年月"></ep-table-column>
                            <ep-table-column sortable name="aae160" header="变更原因"></ep-table-column>
                            <ep-table-column sortable name="aae036" header="经办时间"></ep-table-column>
                        </ep-table>
                    </el-tab-pane>
                </el-tabs>
                <el-row type="flex" justify="center">
					<ep-saveButton id="doSave" top="20" type="primary" bottom="20" ref="save"  @formValidate="formValidate" 
                                    :validate="['form']"   :datas="{formData: form,panel:panel}" name="保存"></ep-saveButton>
                    <ep-button id="cal01" top="20" type="primary" api="doCalculate" bottom="20"
                    :datas="{formData: form,tableData1:tableData1,tableData2:tableData2,tableData3:tableData3}" name="计算"></ep-button>

				</el-row>
            </el-card>
        </el-main>

    </el-main>

</template>



<script src="../js/InjuryBenefitStatusRecoverJS.js"></script>
